

abstract class  Shape{
    public abstract void draw();

}
class Cycle extends Shape{
    @Override
    public void draw(){
        System.out.println("⚪");
    }
}
class Rect extends Shape{
    @Override
    public void draw() {
        System.out.println("矩形");
    }
}

public class Test {
        public static void drawMap(Shape shape){
            shape.draw();
        }
    public static void main(String[] args) {
        Shape shape= new Cycle();
        Shape shape1=new Rect();
        drawMap(shape);
        drawMap(shape1);


    }

}
